<html ep-file="/common/js/query-tester.js"
	ep-module="QueryTesterApp">
<body ng-controller="QueryTesterCtrl">
	<h2>Query</h2>
	<textarea id="query" ng-model="query" style="height: 250px; width: 530px;"></textarea>
	<h2>Params</h2>
	<textarea id="params" ng-model="params"></textarea>
	<button ng-click="send()">Test</button>
	<table>
		<thead>
			<tr>
				<th ng-repeat="(coln,colv) in res[0]" ng-bind="coln"></th>
			</tr>
		</thead>
		<tbody>		
			<tr ng-repeat="row in res" >
				<td ng-repeat="(coln,colv) in row" ng-bind="colv"></td>
			</tr>
		</tbody>
	</table>
		
	<script type="text/javascript" data-main="js/app-start"
		src="/common/js/vendor/requirejs.js"></script>
	
</body>
</html>